package com.accp.taobao.model;

public class AirConditioner {
    //定义笔记本电脑类
    private String name;
    private double price;
    private int salesNum;

    public AirConditioner() {
    }

    public AirConditioner(String name, double price, int salesNum) {
        this.name = name;
        this.price = price;
        this.salesNum = salesNum;
    }

    @Override
    public String toString() {
        return this.getName()+",售价:"+this.getPrice()+"元,月销量:"+this.getSalesNum();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSalesNum() {
        return salesNum;
    }

    public void setSalesNum(int salesNum) {
        this.salesNum = salesNum;
    }
}
